package com.tedu.pj.sys.service;

import com.tedu.pj.common.pojo.PageObject;
import com.tedu.pj.sys.pojo.SysUser;
import com.tedu.pj.sys.pojo.SysUserDeptVo;

import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/20
 */
public interface SysUserService {

    PageObject<SysUserDeptVo> findPageObjects(String username, Integer pageCurrent);

    int validById(Integer id, Integer valid);

    int saveObject(SysUser entity, Integer[] roleIds);

    Map<String, Object> findObjectById(Integer userId);

    int updateObject(SysUser entity, Integer[] roleIds);

    int updatePassword(String password, String newPassword, String cfgPassword);
}
